<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>钱包信息</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/user/withDrawalsAll">提现记录</a></li>
	</ul>
	<form id="searchForm" class="breadcrumb form-search" action="/a/sys/user/withDrawalsAll" method="post">
		<input id="pageNo" name="pageNo" type="hidden" value="1"/>
		<input id="pageSize" name="pageSize" type="hidden" value="30"/>
		<label>银行卡号：</label><input id="bankCardNo" name="bankCardNo" value="${tbWithdrawApply.bankCardNo}" type="number" min="0" maxlength="50" class="input-medium" />
		<label>流水号：</label><input id="streamNo" name="streamNo" value="${tbWithdrawApply.streamNo}" type="number" min="0" maxlength="50" class="input-medium￥" />
		<span style="margin-top:8px;">
			<label>日期范围：&nbsp;</label>
			<input id="beginDate" name="beginDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
				   value="<fmt:formatDate value="${tbWithdrawApply.beginDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
			<label>&nbsp;--&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
			<input id="endDate" name="endDate" type="text" readonly="readonly" maxlength="20" class="input-mini Wdate"
				   value="<fmt:formatDate value="${tbWithdrawApply.endDate}" pattern="yyyy-MM-dd"/>" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>&nbsp;&nbsp;
			&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>&nbsp;&nbsp;
		</span>
	</form>
	<span><font style="color: #00A6C7">${message1}</font></span>
	<script type="text/javascript">top.$.jBox.closeTip();</script>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead><tr><th>户名</th><th>银行卡号</th>
			<th>银行卡类型</th>
			<th>开户行</th>
			<th>流水号</th><th>提现金额</th><th>提现时间</th><th>审核状态</th><th>操作</th></thead>
		<tbody>
		<c:forEach items="${page.list}" var="page">
		<tr>
			<td>${page.trueName}</td>
			<td>${page.bankCardNo}</td>
			<td>${page.bankName}</td>
			<td>${page.openingBank}</td>
			<td>${page.streamNo}</td>
			<td>${page.money}</td>
			<td><fmt:formatDate value="${page.createTime}" type="both"/></td>
			<c:if test="${page.auditorStatus==0}"><td>申请中</td></c:if>
			<c:if test="${page.auditorStatus==1}"><td>申请已通过</td></c:if>
			<c:if test="${page.auditorStatus==2}"><td>申请未通过</td></c:if>
			<td>
				<c:if test="${page.auditorStatus==0}">
					<a href="${ctx}/sys/user/updateWithDrawalStatus?id=${page.id}&status=1">审核通过</a>
					<a href="${ctx}/sys/user/updateWithDrawalStatus?id=${page.id}&status=2">审核不通过</a>
				</c:if>
			</td>
		</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<script type="text/javascript">//<!-- 无框架时，左上角显示菜单图标按钮。
	if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){
		$("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");
		$("#btnMenu").click(function(){
			top.$.jBox('get:/a/sys/menu/treeselect;JSESSIONID=0c057f9fcb854012ab3a2edee70a8a6d', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});
			//if ($("#menuContent").html()==""){$.get("/a/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}
		});
	}//-->
	</script>
</body>
</html>